#ifndef GRAPHICVIEW_H
#define GRAPHICVIEW_H

#include <QGraphicsView>

class Application;
class GraphicView : public QGraphicsView
{
public:
    GraphicView(Application* app, QWidget *parent = 0);

protected:
         bool event(QEvent *event);
    void resizeEvent(QResizeEvent *event);
    void keyPressEvent (QKeyEvent * event);
    void paintEvent(QPaintEvent * event);
    void mouseMoveEvent(QMouseEvent * event);
signals:

public slots:

private:
     bool gestureEvent(QGestureEvent *event);
     void panTriggered(QPanGesture*);
     void pinchTriggered(QPinchGesture*);
     void swipeTriggered(QSwipeGesture*);
    Application* app_;
};

#endif // GRAPHICVIEW_H
